package ee.ts022.tuum.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ee.ts022.tuum.dao.ContractDao;
import ee.ts022.tuum.domain.Contract;

@Service
public class ContractServiceImpl implements ContractService {
	
	@Autowired
	private ContractDao contractDao;

	@Transactional
	public boolean save(Contract contract) {
		return contractDao.save(contract);
	}

	@Transactional
	public Contract getContract(int id) {
		return contractDao.get(id);
	}

}
